package com.cyn.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("logTest")
public class LogBackTestController {

    private static Logger log = LoggerFactory.getLogger(LogBackTestController.class);

    @GetMapping("logTest")
    public String logTest() {

        log.trace("======trace");
        log.debug("======debug");
        log.info("======info");
        log.warn("======warn");
        log.error("======error");
        return "1";
    }


}
